import '@/mock';
import Vue from 'vue';
import App from './App.vue';
import router from '@/router';
import './EventBus';
import {
  showMessage
} from '@/utils';

import loading from '@/directive/loading.js';
import lazy from '@/directive/lazy.js'
import ToTop from '@/components/ToTop';

import store from '@/store';

Vue.component('ToTop', ToTop);
Vue.directive('loading', loading);
Vue.directive('lazy', lazy);
Vue.prototype.$showMessage = showMessage;
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')